package org.fight.spring.boot.user.service.impl;

import java.util.Arrays;
import java.util.List;
import java.util.Map;

import org.fight.spring.boot.user.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements IUserService {

	private final JdbcTemplate jdbcTemplate;

	@Autowired
	public UserServiceImpl(JdbcTemplate jdbcTemplate) {
		this.jdbcTemplate = jdbcTemplate;
	}

	@Override
	public void queryUser() {
		List<Map<String, Object>> list = jdbcTemplate.queryForList("select * from t_alarm_20170606");
		
		System.out.println("zghasdasdaf");
		System.out.println("23232323");
		Arrays.asList("a", "b", "d").sort((e1, e2) -> e1.compareTo(e2));
	}

}
